import request from '@/utils/request'

export function listLandlords(query) {
  return request({
    url: '/system/landlord/list',
    method: 'get',
    params: query
  })
}

export function createLandlord(data) {
  return request({
    url: '/system/landlord',
    method: 'post',
    data
  })
}

export function resetLandlordPassword(userId, password) {
  return request({
    url: `/system/landlord/${userId}/password`,
    method: 'put',
    data: { password }
  })
}
